from django.db import models

# Create your models here.


class User(models.Model):
    username = models.CharField('账户', max_length=24, null=True)
    password = models.CharField('密码', max_length=40, null=True)
    phone = models.CharField('手机号', max_length=16, null=True)
    email = models.CharField('邮箱', max_length=24, null=True)
    img = models.CharField('头像',max_length=80, null=True)
    brief = models.CharField('简介',max_length=255,null=True)
    address = models.CharField('地址', max_length=40)
    status = models.SmallIntegerField('状态', choices=((1, '可用'), (2, '禁用'), (3, '删除')), default=1)
    class Meta:
        db_table = "blog_user"
